package com.hxzy.shop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员积分变更记录(MemberPointChange)实体类
 *
 * @author makejava
 * @since 2022-08-24 15:36:56
 */
@Data
public class MemberPointChange implements Serializable {
    private static final long serialVersionUID = -11511312706644118L;
    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 会员id
     */
    private Long memberId;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 写明来源,如(1购物奖励 2商品兑换 3优惠券兑换 4商品退货 5积分失效 6系统赠送 7系统扣减)
     */
    private Integer changeSource;
    /**
     * 变更积分
     */
    private Integer changePoint;
    /**
     * 变更前积分
     */
    private Integer changePointBak;
    /**
     * 变更后积分
     */
    private Integer changePointAft;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 商户id
     */
    private Long merchantId;
}

